package com.shop.cereshop.commons.tencent.im.model.response;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * @description: 腾讯云IM 单发单聊消息-响应结果
 * @author zdd
 * @date 2025/9/9 18:40
 * @version 1.0
 */
public class SendMsgResponse extends TIMBaseResponse implements Serializable {
    private static final long serialVersionUID = -2873898207985701199L;
    /**
     * 消息时间戳，UNIX 时间戳
     */
    @JsonProperty("MsgTime")
    private Integer msgTime;

    /**
     * 消息唯一标识，用于撤回。长度不超过50个字符
     */
    @JsonProperty("MsgKey")
    private String msgKey;

    /**
     * 该条消息在客户端唯一标识。
     */
    @JsonProperty("MsgId")
    private String msgId;

    public Integer getMsgTime() {
        return msgTime;
    }

    public void setMsgTime(Integer msgTime) {
        this.msgTime = msgTime;
    }

    public String getMsgKey() {
        return msgKey;
    }

    public void setMsgKey(String msgKey) {
        this.msgKey = msgKey;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }


    public SendMsgResponse() {
    }

    public SendMsgResponse(String actionStatus, String errorInfo, Integer errorCode) {
        this.actionStatus = actionStatus;
        this.errorInfo = errorInfo;
        this.errorCode = errorCode;
    }

    public SendMsgResponse(String actionStatus, String errorInfo, Integer errorCode, Integer msgTime, String msgKey, String msgId) {
        this.actionStatus = actionStatus;
        this.errorInfo = errorInfo;
        this.errorCode = errorCode;
        this.msgTime = msgTime;
        this.msgKey = msgKey;
        this.msgId = msgId;
    }

    @Override
    public String toString() {
        return "SendMsgResponse{" +
                "msgTime=" + msgTime +
                ", msgKey='" + msgKey + '\'' +
                ", msgId='" + msgId + '\'' +
                ", actionStatus='" + actionStatus + '\'' +
                ", errorInfo='" + errorInfo + '\'' +
                ", errorCode=" + errorCode +
                '}';
    }



}
